We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b1de5 commit b5ba648Copy full SHA for b5ba648
fs/proc/fd.c
@@ -352,18 +352,9 @@ static int proc_fd_getattr(struct mnt_idmap *idmap,
352
u32 request_mask, unsigned int query_flags)
353
{
354
struct inode *inode = d_inode(path->dentry);
355
- int rv = 0;
356
357
generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat);
358
-
359
- /* If it's a directory, put the number of open fds there */
360
- if (S_ISDIR(inode->i_mode)) {
361
- rv = proc_readfd_count(inode, &stat->size);
362
- if (rv < 0)
363
- return rv;
364
- }
365
366
+ return proc_readfd_count(inode, &stat->size);
367
}
368
369
const struct inode_operations proc_fd_inode_operations = {
0 commit comments