ext4: remove unnecessary bio get/put
authorJens Axboe <axboe@fb.com>
Fri, 6 May 2016 02:09:49 +0000 (22:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 6 May 2016 02:09:49 +0000 (22:09 -0400)
commit32157de29a3140bfaa74c6e0fae18c78fe84a5df
tree6c7c431e96c4c03b9f7b068e48db4d69adce44cd
parent935244cd54b86ca46e69bc6604d2adfb1aec2d42
ext4: remove unnecessary bio get/put

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: Jens Axboe <axboe@fb.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/page-io.c