]> git.baikalelectronics.ru Git - kernel.git/commitdiff
locks: print unsigned ino in /proc/locks
authorAmir Goldstein <amir73il@gmail.com>
Sun, 22 Dec 2019 18:45:28 +0000 (20:45 +0200)
committerJeff Layton <jlayton@kernel.org>
Sun, 29 Dec 2019 14:00:58 +0000 (09:00 -0500)
An ino is unsigned, so display it as such in /proc/locks.

Cc: stable@vger.kernel.org
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/locks.c

index 6970f55daf54341f307a5052eb44b9e2d039ead8..44b6da0328426ba0f133733114973f7d7a526e6a 100644 (file)
@@ -2853,7 +2853,7 @@ static void lock_get_status(struct seq_file *f, struct file_lock *fl,
        }
        if (inode) {
                /* 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);
        } else {