commit | 212f7965da738b87b6cd812618b758348f1dd945 | [log] [tgz] |
---|---|---|
author | David Howells <dhowells@redhat.com> | Tue Mar 17 22:16:40 2015 +0000 |
committer | David Howells <dhowells@redhat.com> | Tue Mar 17 22:16:40 2015 +0000 |
tree | db73aa2051395b92044d1e541d988e603e601271 | |
parent | 357feb66f50538b437b609c23c2bd7774a39e72b [diff] |
VFS: Make pathwalk use d_is_reg() rather than S_ISREG() Make pathwalk use d_is_reg() rather than S_ISREG() to determine whether to honour O_TRUNC. Since this occurs after complete_walk(), the dentry type field cannot change and the inode pointer cannot change as we hold a ref on the dentry, so this should be safe. Signed-off-by: David Howells <dhowells@redhat.com>