Skip to content

Commit 6ca10ed

Browse files
committed
locks: remove "inline" qualifier from fl_link manipulation functions
It's best to let the compiler decide that. Acked-by: J. Bruce Fields <bfields@fieldses.org> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Jeff Layton <jlayton@redhat.com>
1 parent 46dad76 commit 6ca10ed

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

‎fs/locks.c‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,7 @@ static int posix_same_owner(struct file_lock *fl1, struct file_lock *fl2)
511511
}
512512

513513
/* Must be called with the i_lock held! */
514-
static inline void
515-
locks_insert_global_locks(struct file_lock *fl)
514+
static void locks_insert_global_locks(struct file_lock *fl)
516515
{
517516
lg_local_lock(&file_lock_lglock);
518517
fl->fl_link_cpu = smp_processor_id();
@@ -521,8 +520,7 @@ locks_insert_global_locks(struct file_lock *fl)
521520
}
522521

523522
/* Must be called with the i_lock held! */
524-
static inline void
525-
locks_delete_global_locks(struct file_lock *fl)
523+
static void locks_delete_global_locks(struct file_lock *fl)
526524
{
527525
/*
528526
* Avoid taking lock if already unhashed. This is safe since this check
@@ -544,14 +542,12 @@ posix_owner_key(struct file_lock *fl)
544542
return (unsigned long)fl->fl_owner;
545543
}
546544

547-
static inline void
548-
locks_insert_global_blocked(struct file_lock *waiter)
545+
static void locks_insert_global_blocked(struct file_lock *waiter)
549546
{
550547
hash_add(blocked_hash, &waiter->fl_link, posix_owner_key(waiter));
551548
}
552549

553-
static inline void
554-
locks_delete_global_blocked(struct file_lock *waiter)
550+
static void locks_delete_global_blocked(struct file_lock *waiter)
555551
{
556552
hash_del(&waiter->fl_link);
557553
}

0 commit comments

Comments
 (0)