mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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 <amir73il@gmail.com> Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Change-Id: I250a495fe3fc809e880535347f462fe552644edf
This commit is contained in:
parent
5e483034fd
commit
42110ed780
1 changed files with 1 additions and 1 deletions
|
@ -2257,7 +2257,7 @@ static void lock_get_status(struct seq_file *f, struct file_lock *fl,
|
||||||
inode->i_sb->s_id, inode->i_ino);
|
inode->i_sb->s_id, inode->i_ino);
|
||||||
#else
|
#else
|
||||||
/* userspace relies on this representation of dev_t ;-( */
|
/* 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),
|
MAJOR(inode->i_sb->s_dev),
|
||||||
MINOR(inode->i_sb->s_dev), inode->i_ino);
|
MINOR(inode->i_sb->s_dev), inode->i_ino);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue