ocfs2: xattr: remove unused function

Remove ocfs2_xattr_bucket_get_val() that is not used anywhere.

This was partially found by using a static code analysis program called
cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Rickard Strandqvist 2015-02-10 14:08:54 -08:00 committed by Linus Torvalds
parent 79c83ea1aa
commit d6edc87af8
1 changed files with 0 additions and 10 deletions

View File

@ -5334,16 +5334,6 @@ out:
return ret; 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. * Truncate the specified xe_off entry in xattr bucket.
* bucket is indicated by header_bh and len is the new length. * bucket is indicated by header_bh and len is the new length.