Skip to content
Snippets Groups Projects
  • Jens Axboe's avatar
    32157de2
    ext4: remove unnecessary bio get/put · 32157de2
    Jens Axboe authored
    
    ext4_io_submit() used to check for EOPNOTSUPP after bio submission,
    which is why it had to get an extra reference to the bio before
    submitting it. But since we no longer touch the bio after submission,
    get rid of the redundant get/put of the bio. If we do get the extra
    reference, we enter the slower path of having to flag this bio as now
    having external references.
    
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    32157de2
    History
    ext4: remove unnecessary bio get/put
    Jens Axboe authored
    
    ext4_io_submit() used to check for EOPNOTSUPP after bio submission,
    which is why it had to get an extra reference to the bio before
    submitting it. But since we no longer touch the bio after submission,
    get rid of the redundant get/put of the bio. If we do get the extra
    reference, we enter the slower path of having to flag this bio as now
    having external references.
    
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.