From: Amir Goldstein Date: Sun, 22 Dec 2019 18:45:28 +0000 (+0200) Subject: locks: print unsigned ino in /proc/locks X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0d23562f1efbf1950b22f27488c96e61acdd137;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git locks: print unsigned ino in /proc/locks commit 98ca480a8f22fdbd768e3dad07024c8d4856576c upstream. An ino is unsigned, so display it as such in /proc/locks. Cc: stable@vger.kernel.org Signed-off-by: Amir Goldstein Signed-off-by: Jeff Layton Signed-off-by: Greg Kroah-Hartman Signed-off-by: Lee Jones Change-Id: I250a495fe3fc809e880535347f462fe552644edf Signed-off-by: Kevin F. Haggerty --- diff --git a/fs/locks.c b/fs/locks.c index ae546e72b24..2ddfd357d3b 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -2255,7 +2255,7 @@ static void lock_get_status(struct seq_file *f, struct file_lock *fl, inode->i_sb->s_id, inode->i_ino); #else /* userspace relies on this representation of dev_t ;-( */ - seq_printf(f, "%d %02x:%02x:%ld ", fl_pid, + seq_printf(f, "%d %02x:%02x:%lu ", fl_pid, MAJOR(inode->i_sb->s_dev), MINOR(inode->i_sb->s_dev), inode->i_ino); #endif