Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1672234
| From | Theodore Ts'o <tytso@mit.edu> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 10/32] ext4: change ext4_xattr_inode_iget() signature |
| Date | 2017-06-22 04:00 +0200 |
| Message-ID | <tUZzz-6c3-1@gated-at.bofh.it> (permalink) |
| References | <tUVmh-3od-3@gated-at.bofh.it> <tUVmj-3od-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jun 21, 2017 at 02:21:20PM -0700, Tahsin Erdogan wrote: > In general, kernel functions indicate success/failure through their return > values. This function returns the status as an output parameter and reserves > the return value for the inode. Make it follow the general convention. > > Signed-off-by: Tahsin Erdogan <tahsin@google.com> The fact that we have several conventions for error passing, is due to the long history of the ext2/3/4 code base. In the long term, I'd actually like to see us gradually move everyhing to use the ERR_PTR convention. It's a bit more efficient for the common (no error) case, and it allows us to drop an extra parameter from the function signature. Still, it's incrementally better this way, so thanks, added to the ext4 patch queue. - Ted
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 10/32] ext4: change ext4_xattr_inode_iget() signature Tahsin Erdogan <tahsin@google.com> - 2017-06-21 23:30 +0200 Re: [PATCH 10/32] ext4: change ext4_xattr_inode_iget() signature Theodore Ts'o <tytso@mit.edu> - 2017-06-22 04:00 +0200
csiph-web