kernel-ark/fs/ceph
Julia Lawall 7e34bc524e fs/ceph: Use ERR_CAST
Use ERR_CAST(x) rather than ERR_PTR(PTR_ERR(x)).  The former makes more
clear what is the purpose of the operation, which otherwise looks like a
no-op.

In the case of fs/ceph/inode.c, ERR_CAST is not needed, because the type of
the returned value is the same as the type of the enclosing function.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
type T;
T x;
identifier f;
@@

T f (...) { <+...
- ERR_PTR(PTR_ERR(x))
+ x
 ...+> }

@@
expression x;
@@

- ERR_PTR(PTR_ERR(x))
+ ERR_CAST(x)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-05-29 09:12:41 -07:00
..
crush
addr.c ceph: use ceph_sb_to_client instead of ceph_client 2010-05-17 15:25:17 -07:00
armor.c
auth_none.c ceph: renew auth tickets before they expire 2010-05-29 09:12:39 -07:00
auth_none.h ceph: add missing #includes 2010-05-03 10:49:24 -07:00
auth_x_protocol.h
auth_x.c ceph: renew auth tickets before they expire 2010-05-29 09:12:39 -07:00
auth_x.h
auth.c ceph: renew auth tickets before they expire 2010-05-29 09:12:39 -07:00
auth.h ceph: renew auth tickets before they expire 2010-05-29 09:12:39 -07:00
buffer.c
buffer.h
caps.c ceph: all allocation functions should get gfp_mask 2010-05-17 15:25:42 -07:00
ceph_debug.h
ceph_frag.c
ceph_frag.h
ceph_fs.c
ceph_fs.h ceph: specify max_bytes on readdir replies 2010-05-17 15:25:41 -07:00
ceph_hash.c
ceph_hash.h
ceph_strings.c ceph: cleanup pool op strings 2010-05-17 15:25:41 -07:00
crypto.c
crypto.h
debugfs.c ceph: make mon client statfs handling more generic 2010-05-17 15:25:33 -07:00
decode.h
dir.c fs/ceph: Use ERR_CAST 2010-05-29 09:12:41 -07:00
export.c fs/ceph: Use ERR_CAST 2010-05-29 09:12:41 -07:00
file.c fs/ceph: Use ERR_CAST 2010-05-29 09:12:41 -07:00
inode.c fs/ceph: Use ERR_CAST 2010-05-29 09:12:41 -07:00
ioctl.c ceph: use ceph_sb_to_client instead of ceph_client 2010-05-17 15:25:17 -07:00
ioctl.h
Kconfig
Makefile
mds_client.c ceph: make mds requests killable, not interruptible 2010-05-29 09:12:35 -07:00
mds_client.h ceph: use common helper for aborted dir request invalidation 2010-05-17 15:25:40 -07:00
mdsmap.c
mdsmap.h
messenger.c ceph: all allocation functions should get gfp_mask 2010-05-17 15:25:42 -07:00
messenger.h ceph: all allocation functions should get gfp_mask 2010-05-17 15:25:42 -07:00
mon_client.c ceph: do not resend mon requests on auth ticket renewal 2010-05-29 09:12:38 -07:00
mon_client.h ceph: reuse mon subscribe message instead of allocated anew 2010-05-21 16:26:11 -07:00
msgpool.c ceph: all allocation functions should get gfp_mask 2010-05-17 15:25:42 -07:00
msgpool.h ceph: name msgpools; useful error messages 2010-05-17 15:25:24 -07:00
msgr.h ceph: resync headers with userland 2010-05-17 15:25:38 -07:00
osd_client.c ceph: Storage class should be before const qualifier 2010-05-21 15:01:21 -07:00
osd_client.h ceph: resubmit requests on pg mapping change (not just primary change) 2010-05-11 09:53:56 -07:00
osdmap.c fs/ceph: Use ERR_CAST 2010-05-29 09:12:41 -07:00
osdmap.h ceph: resubmit requests on pg mapping change (not just primary change) 2010-05-11 09:53:56 -07:00
pagelist.c ceph: use __page_cache_alloc and add_to_page_cache_lru 2010-05-17 15:25:12 -07:00
pagelist.h
rados.h ceph: resync headers with userland 2010-05-17 15:25:38 -07:00
README
snap.c ceph: use ceph_sb_to_client instead of ceph_client 2010-05-17 15:25:17 -07:00
super.c fs/ceph: Use ERR_CAST 2010-05-29 09:12:41 -07:00
super.h ceph: removed duplicated #includes 2010-05-29 09:12:37 -07:00
types.h
xattr.c ceph: use ceph. prefix for virtual xattrs 2010-05-17 15:25:37 -07:00

#
# The following files are shared by (and manually synchronized
# between) the Ceph userland and kernel client.
#
# userland                  kernel
src/include/ceph_fs.h	    fs/ceph/ceph_fs.h
src/include/ceph_fs.cc	    fs/ceph/ceph_fs.c
src/include/msgr.h	    fs/ceph/msgr.h
src/include/rados.h	    fs/ceph/rados.h
src/include/ceph_strings.cc fs/ceph/ceph_strings.c
src/include/ceph_frag.h	    fs/ceph/ceph_frag.h
src/include/ceph_frag.cc    fs/ceph/ceph_frag.c
src/include/ceph_hash.h	    fs/ceph/ceph_hash.h
src/include/ceph_hash.cc    fs/ceph/ceph_hash.c
src/crush/crush.c	    fs/ceph/crush/crush.c
src/crush/crush.h	    fs/ceph/crush/crush.h
src/crush/mapper.c	    fs/ceph/crush/mapper.c
src/crush/mapper.h	    fs/ceph/crush/mapper.h
src/crush/hash.h	    fs/ceph/crush/hash.h
src/crush/hash.c	    fs/ceph/crush/hash.c