Skip to content

Commit c68421b

Browse files
committed
afs: Make afs_zap_data() static
Make afs_zap_data() static as it's only used in the file in which it is defined. Signed-off-by: David Howells <[email protected]>
1 parent 4a06fa5 commit c68421b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

fs/afs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ struct inode *afs_root_iget(struct super_block *sb, struct key *key)
538538
* mark the data attached to an inode as obsolete due to a write on the server
539539
* - might also want to ditch all the outstanding writes and dirty pages
540540
*/
541-
void afs_zap_data(struct afs_vnode *vnode)
541+
static void afs_zap_data(struct afs_vnode *vnode)
542542
{
543543
_enter("{%llx:%llu}", vnode->fid.vid, vnode->fid.vnode);
544544

fs/afs/internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,6 @@ extern int afs_ilookup5_test_by_fid(struct inode *, void *);
10691069
extern struct inode *afs_iget_pseudo_dir(struct super_block *, bool);
10701070
extern struct inode *afs_iget(struct afs_operation *, struct afs_vnode_param *);
10711071
extern struct inode *afs_root_iget(struct super_block *, struct key *);
1072-
extern void afs_zap_data(struct afs_vnode *);
10731072
extern bool afs_check_validity(struct afs_vnode *);
10741073
extern int afs_validate(struct afs_vnode *, struct key *);
10751074
extern int afs_getattr(const struct path *, struct kstat *, u32, unsigned int);

0 commit comments

Comments
 (0)