An ino is unsigned, so display it as such in /proc/locks.
Unified · Split
| @@ -2853,7 +2853,7 @@ static void lock_get_status(struct seq_file *f, struct file_lock *fl, · 2852 unmodified lines | |||
| 2853 | } | 2853 | } |
| 2854 | if (inode) { | 2854 | if (inode) { |
| 2855 | /* userspace relies on this representation of dev_t */ | 2855 | /* userspace relies on this representation of dev_t */ |
| 2856 | seq_printf(f, "%d %02x:%02x:%ld ", fl_pid, | 2856 | seq_printf(f, "%d %02x:%02x:%lu ", fl_pid, |
| 2857 | MAJOR(inode->i_sb->s_dev), | 2857 | MAJOR(inode->i_sb->s_dev), |
| 2858 | MINOR(inode->i_sb->s_dev), inode->i_ino); | 2858 | MINOR(inode->i_sb->s_dev), inode->i_ino); |
| 2859 | } else { | 2859 | } else { |