]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: use ENOENT instead of EEXIST when get system file fails
authorJoseph Qi <joseph.qi@huawei.com>
Tue, 7 Apr 2015 23:43:54 +0000 (09:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:43:54 +0000 (09:43 +1000)
commit9b3dddd87c9159fd4eef7fb2f539ec6f3f8c8c02
tree4aac4b0ba5b5c10483826ae62c1d42eb601142f3
parentcdbffa4f2bc4294856178d12e8eb786149d2e9ba
ocfs2: use ENOENT instead of EEXIST when get system file fails

When ocfs2_get_system_file_inode fails, it is obscure to set the return
value to -EEXIST. So change it to -ENOENT.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/inode.c
fs/ocfs2/namei.c