Commit a0dbc56610b3e157f19241404e738744b7e7877e
Committed by
Al Viro
1 parent
7177a9c4b5
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
bad_inode: add ->rename2()
so we return -EIO instead of -EINVAL. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 1 changed file with 4 additions and 3 deletions Side-by-side Diff
fs/bad_inode.c
... | ... | @@ -218,8 +218,9 @@ |
218 | 218 | return -EIO; |
219 | 219 | } |
220 | 220 | |
221 | -static int bad_inode_rename (struct inode *old_dir, struct dentry *old_dentry, | |
222 | - struct inode *new_dir, struct dentry *new_dentry) | |
221 | +static int bad_inode_rename2(struct inode *old_dir, struct dentry *old_dentry, | |
222 | + struct inode *new_dir, struct dentry *new_dentry, | |
223 | + unsigned int flags) | |
223 | 224 | { |
224 | 225 | return -EIO; |
225 | 226 | } |
... | ... | @@ -279,7 +280,7 @@ |
279 | 280 | .mkdir = bad_inode_mkdir, |
280 | 281 | .rmdir = bad_inode_rmdir, |
281 | 282 | .mknod = bad_inode_mknod, |
282 | - .rename = bad_inode_rename, | |
283 | + .rename2 = bad_inode_rename2, | |
283 | 284 | .readlink = bad_inode_readlink, |
284 | 285 | /* follow_link must be no-op, otherwise unmounting this inode |
285 | 286 | won't work */ |