ocfs2: do not fallback to buffer I/O write if appending
[firefly-linux-kernel-4.4.55.git] / fs / ocfs2 / xattr.c
index 662f8dee149f992d1bbed4f5d38539f549103d1f..85b190dc132f3a3cc52dc19eb5a31ab094060aef 100644 (file)
@@ -5334,16 +5334,6 @@ out:
        return ret;
 }
 
-static inline char *ocfs2_xattr_bucket_get_val(struct inode *inode,
-                                       struct ocfs2_xattr_bucket *bucket,
-                                       int offs)
-{
-       int block_off = offs >> inode->i_sb->s_blocksize_bits;
-
-       offs = offs % inode->i_sb->s_blocksize;
-       return bucket_block(bucket, block_off) + offs;
-}
-
 /*
  * Truncate the specified xe_off entry in xattr bucket.
  * bucket is indicated by header_bh and len is the new length.