Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6edc87a authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Linus Torvalds
Browse files

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: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 79c83ea1
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -5334,16 +5334,6 @@ static int ocfs2_add_new_xattr_bucket(struct inode *inode,
	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.