]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: lustre: lclient: Remove wrapper functions
authorShraddha Barke <shraddha.6596@gmail.com>
Sat, 31 Oct 2015 10:28:41 +0000 (15:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
The functions cl_isize_lock and cl_isize_unlock can be replaced with
direct calls to ll_inode_size_lock and ll_inode_size_unlock. Thus
drop the wrapper functions.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lclient/lcommon_cl.c
drivers/staging/lustre/lustre/llite/llite_internal.h

index 0b8e4d2175ae5cf80dbebe33b3f1905547e0ca5e..12c7f0e669d40e88bf6da1d63bc6d1c93f0a7cdf 100644 (file)
@@ -427,7 +427,7 @@ static void ccc_object_size_lock(struct cl_object *obj)
 {
        struct inode *inode = ccc_object_inode(obj);
 
-       cl_isize_lock(inode);
+       ll_inode_size_lock(inode);
        cl_object_attr_lock(obj);
 }
 
@@ -436,7 +436,7 @@ static void ccc_object_size_unlock(struct cl_object *obj)
        struct inode *inode = ccc_object_inode(obj);
 
        cl_object_attr_unlock(obj);
-       cl_isize_unlock(inode);
+       ll_inode_size_unlock(inode);
 }
 
 /*****************************************************************************
index 9096d311e45d76baa411fb53b0d331685f304972..157c32840e0635408b268b70fcd1a84ce1cfae32 100644 (file)
@@ -1285,16 +1285,6 @@ static inline struct ll_file_data *cl_iattr2fd(struct inode *inode,
        return LUSTRE_FPRIVATE(attr->ia_file);
 }
 
-static inline void cl_isize_lock(struct inode *inode)
-{
-       ll_inode_size_lock(inode);
-}
-
-static inline void cl_isize_unlock(struct inode *inode)
-{
-       ll_inode_size_unlock(inode);
-}
-
 static inline void cl_isize_write_nolock(struct inode *inode, loff_t kms)
 {
        LASSERT(mutex_is_locked(&ll_i2info(inode)->lli_size_mutex));